package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 证件记录 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-15 11:35:07 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "证件记录")
@Table ( name ="Document_Record")
public class DocumentRecord  implements Serializable {

	private static final long serialVersionUID =  4456347193340432676L;

	/**
	 * 证件记录ID
	 */
	@ApiModelProperty(value = "证件记录ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Document_Record_Id" )
	private Long documentRecordId;

	/**
	 * 证件类型ID
	 */
	@ApiModelProperty(value = "证件类型ID")
   	@Column(name = "Document_Type_Id" )
	private Long documentTypeId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 账号ID
	 */
	@ApiModelProperty(value = "账号ID")
   	@Column(name = "Account_Id" )
	private String accountId;

	/**
	 * 证件分发ID
	 */
	@ApiModelProperty(value = "证件分发ID")
   	@Column(name = "Distribute_Id" )
	private Long distributeId;
	
	/**
	 * 类型名称
	 */
	@ApiModelProperty(value = "类型名称")
   	@Column(name = "TypeName" )
	private String typeName;

	/**
	 * 新增数量
	 */
	@ApiModelProperty(value = "新增数量")
   	@Column(name = "Number" )
	private Long number;

	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 手机
	 */
	@ApiModelProperty(value = "手机")
   	@Column(name = "Phone" )
	private String phone;

	/**
	 * 导入文件地址
	 */
	@ApiModelProperty(value = "导入文件地址")
   	@Column(name = "Url" )
	private String url;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getDistributeId() {
		return this.distributeId;
	}

	public void setDistributeId(Long distributeId) {
		this.distributeId = distributeId;
	}

	public Long getDocumentRecordId() {
		return this.documentRecordId;
	}

	public void setDocumentRecordId(Long documentRecordId) {
		this.documentRecordId = documentRecordId;
	}

	public Long getDocumentTypeId() {
		return this.documentTypeId;
	}

	public void setDocumentTypeId(Long documentTypeId) {
		this.documentTypeId = documentTypeId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getAccountId() {
		return this.accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Long getNumber() {
		return this.number;
	}

	public void setNumber(Long number) {
		this.number = number;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"documentRecordId='" + documentRecordId + '\'' +
					"documentTypeId='" + documentTypeId + '\'' +
					"projectId='" + projectId + '\'' +
					"accountId='" + accountId + '\'' +
					"typeName='" + typeName + '\'' +
					"number='" + number + '\'' +
					"name='" + name + '\'' +
					"phone='" + phone + '\'' +
					"url='" + url + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
